<%@ page language="java" import="java.util.*,com.common.config.WebConfiguration"
	pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%
	String webResource = WebConfiguration.webResource;  
%>
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title></title>
       <!-- 全局js -->
 <script src="<%=webResource%>/assets/js/jquery.min.js?v=2.1.4"></script>
	<script src="<%=webResource%>/assets/js/bootstrap.min.js?v=3.3.6"></script>
<link href="<%=webResource%>/assets/css/bootstrap.min.css?v=3.3.6" rel="stylesheet">
<link href="<%=webResource%>/assets/css/font-awesome.css?v=4.4.0" rel="stylesheet">
<link href="<%=webResource%>/assets/css/animate.css" rel="stylesheet">
<link href="<%=webResource%>/assets/css/style.css?v=4.1.0" rel="stylesheet">
<link href="<%=webResource%>/assets/css/plugins/bootsrap-select/bootstrap-select.min.css" rel="stylesheet">
<link href="<%=webResource%>/assets/js/plugins/layer/skin/default/layer.css" rel="stylesheet">
 <script src="<%=webResource%>/assets/js/plugins/layer/layer.js"></script>
	<script src="<%=webResource%>/assets/js/common.js"></script>
</head>

<body class="gray-bg">
    <div class="wrapper wrapper-content animated fadeInRight">
    <div class="row">
            <div class="col-sm-12">
                <div class="ibox float-e-margins">
                    <div class="ibox-content">
                        <form action="/admin/course/importcourse" class="form-horizontal m-t" method="post"  id="fmForm">
                     
                       <input type="hidden" name="school.id" value="${course.id}">
                           <div class="form-group">
                                <label class="col-sm-3 control-label">学校：</label>
                                <div class="col-sm-8">
                               <select id="school" name="school" class="selectpicker  form-control" >
                                <c:forEach var="school" items="${schools}">
                                             <option value="${school.id}" <c:if test="${school.id eq course.school_id}">selected</c:if> >${school.name}</option>
                                 </c:forEach>
                                </select>
                                </div>
                            </div>
                           <div class="form-group">
                                <div class="col-sm-4 col-sm-offset-3">
                                    <button class="btn btn-primary" type="button" id="btn_save"><i class="glyphicon glyphicon-ok"></i>&nbsp;导出数据</button>                               
                                </div>
                            </div> 
                        </form>
                    </div>
                </div>
               
            </div>
          
         </div>
         <!-- <div class="row">
             <table id="tblist"
           data-toolbar="#toolbar"
           data-search="true"
           data-show-refresh="true"
           data-show-toggle="true"
           data-show-columns="true"
           data-minimum-count-columns="2"
           data-show-pagination-switch="true"
           data-pagination="true"
           data-id-field="id"
           data-page-list="[10, 25, 50, 100, ALL]"
           data-show-footer="false"
           data-side-pagination="server"
           data-url="/admin/course/importpage">
           </table>	
         </div> -->
      </div>
     


 
	<!-- 自定义js -->
	    <!-- jQuery Validation plugin javascript-->
    <script src="<%=webResource%>/assets/js/plugins/validate/jquery.validate.min.js"></script>
    <script src="<%=webResource%>/assets/js/plugins/validate/messages_zh.min.js"></script>
    
     <script src="<%=webResource%>/assets/js/plugins/bootsrap-select/bootstrap-select.min.js"></script>
     <script src="<%=webResource%>/assets/js/plugins/bootsrap-select/defaults-zh_CN.min.js"></script>
     
   <script type="text/javascript">
   
     $(function(){
    	//导出
 		$("#btn_save").on("click", function() {
 			window.location.href='/admin/course/exportData?schoolId='+$("#school").val()+"&schoolName="+$('#school option:selected').text();//选中的文本
 		});
    	 
    	 
     });
     
     </script>
</body>
</html>
